package cn.edu.scau.cmi.maikejian.adapter;

import java.util.List;

public class SortUtil {
	public static List<Integer> sortInt(List<Integer> intList)
	{
		for (int i = 0; i < intList.size() - 1; i++)
		{
			for (int j = 1; j < intList.size() - i; j++)
			{
				if ((intList.get(j - 1)).compareTo(intList.get(j)) > 0)
				{
					Integer temp = intList.get(j - 1);
					intList.set((j - 1), intList.get(j));
					intList.set(j, temp);
				}
			}
		}
		return intList;
	}
}
